<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ page import="javax.portlet.*"%>
<%@ page import="portal.TavernaServer" %>
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet"%>

<portlet:defineObjects />
<%PortletPreferences prefs = renderRequest.getPreferences();%>

<% String[] jobs = TavernaServer.getJobs();%>

<form method="post" action="<portlet:renderURL/>">
    <table cellspacing="3">
        <tr><td>Job ID:</td>
            <td><select name="job">
                    <% for (int i = 0; i < jobs.length; i++) {%>
                    <option value="<%= jobs[i]%>"><%= jobs[i]%></option>
                    <% }%>
                </select></td>
        </tr>
    </table>
    <input type="submit" value="Go"/>
</form>